package com.trex.modules.tbl.carfault.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 车辆故障表Entity
 * @author jy
 * @version 2023-11-13
 */
@Table(name="tbl_xd_clgz", alias="a", label="车辆故障表信息", columns={
		@Column(name="rec_id", attrName="recId", label="rec_id", isPK=true),
		@Column(name="jxcbh", attrName="jxcbh", label="检修车编号"),
		@Column(name="wagonno", attrName="wagonno", label="车号"),
		@Column(name="device_no", attrName="deviceNo", label="设备号"),
		@Column(name="kclbfl", attrName="kclbfl", label="扣车分类"),
		@Column(name="kclbmc", attrName="kclbmc", label="扣车类别"),
		@Column(name="pym", attrName="pym", label="拼音码"),
		@Column(name="tjcsbh", attrName="tjcsbh", label="添加人场所编号"),
		@Column(name="tjcsmc", attrName="tjcsmc", label="添加人场所名称"),
		@Column(name="tjrbh", attrName="tjrbh", label="添加人编号"),
		@Column(name="tjrmc", attrName="tjrmc", label="添加人名称"),
		@Column(name="user_code", attrName="userCode", label="更新人编号"),
		@Column(name="ip", attrName="ip", label="IP地址"),
		@Column(name="upd_time", attrName="updTime", label="更新时间", isUpdateForce=true),
	}, orderBy="a.rec_id DESC"
)
public class TblXdClgz extends DataEntity<TblXdClgz> {
	
	private static final long serialVersionUID = 1L;
	private String recId;		// rec_id
	private String jxcbh;		// 检修车编号
	private String wagonno;		// 车号
	private String deviceNo;		// 设备号
	private String kclbfl;		// 扣车分类
	private String kclbmc;		// 扣车类别
	private String pym;		// 拼音码
	private String tjcsbh;		// 添加人场所编号
	private String tjcsmc;		// 添加人场所名称
	private String tjrbh;		// 添加人编号
	private String tjrmc;		// 添加人名称
	private String userCode;		// 更新人编号
	private String ip;		// IP地址
	private Date updTime;		// 更新时间

	public TblXdClgz() {
		this(null);
	}
	
	public TblXdClgz(String id){
		super(id);
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	
	@Size(min=0, max=20, message="检修车编号长度不能超过 20 个字符")
	public String getJxcbh() {
		return jxcbh;
	}

	public void setJxcbh(String jxcbh) {
		this.jxcbh = jxcbh;
	}
	
	@Size(min=0, max=10, message="车号长度不能超过 10 个字符")
	public String getWagonno() {
		return wagonno;
	}

	public void setWagonno(String wagonno) {
		this.wagonno = wagonno;
	}
	
	@Size(min=0, max=10, message="设备号长度不能超过 10 个字符")
	public String getDeviceNo() {
		return deviceNo;
	}

	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo;
	}
	
	@Size(min=0, max=10, message="扣车分类长度不能超过 10 个字符")
	public String getKclbfl() {
		return kclbfl;
	}

	public void setKclbfl(String kclbfl) {
		this.kclbfl = kclbfl;
	}
	
	@Size(min=0, max=30, message="扣车类别长度不能超过 30 个字符")
	public String getKclbmc() {
		return kclbmc;
	}

	public void setKclbmc(String kclbmc) {
		this.kclbmc = kclbmc;
	}
	
	@Size(min=0, max=30, message="拼音码长度不能超过 30 个字符")
	public String getPym() {
		return pym;
	}

	public void setPym(String pym) {
		this.pym = pym;
	}
	
	@Size(min=0, max=6, message="添加人场所编号长度不能超过 6 个字符")
	public String getTjcsbh() {
		return tjcsbh;
	}

	public void setTjcsbh(String tjcsbh) {
		this.tjcsbh = tjcsbh;
	}
	
	@Size(min=0, max=50, message="添加人场所名称长度不能超过 50 个字符")
	public String getTjcsmc() {
		return tjcsmc;
	}

	public void setTjcsmc(String tjcsmc) {
		this.tjcsmc = tjcsmc;
	}
	
	@Size(min=0, max=10, message="添加人编号长度不能超过 10 个字符")
	public String getTjrbh() {
		return tjrbh;
	}

	public void setTjrbh(String tjrbh) {
		this.tjrbh = tjrbh;
	}
	
	@Size(min=0, max=20, message="添加人名称长度不能超过 20 个字符")
	public String getTjrmc() {
		return tjrmc;
	}

	public void setTjrmc(String tjrmc) {
		this.tjrmc = tjrmc;
	}
	
	@Size(min=0, max=10, message="更新人编号长度不能超过 10 个字符")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
	@Size(min=0, max=15, message="IP地址长度不能超过 15 个字符")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	
}